<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UserDynamicList extends Model
{
    protected $table = 'ivy_user_dynamiclist';
    public $timestamps = false;
    protected $guarded=[];

    public function option_user()
    {
        return $this->hasOne('App\Models\User', 'id', 'option_uid')->select(['id', 'name', 'mobile', 'avatar']);
    }

    public function _user()
    {
        return $this->belongsTo('App\Models\User', 'uid');
    }


}
